package com.dj.dormitory.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.Version;
import javafx.beans.value.ObservableNumberValue;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author DJ同学
 * @since 2021-01-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_bed")
public class Bed implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer bno;

    private Integer dormitoryId;

    private Integer buildingId;

    @Version
    private Integer version;

    public Bed(Integer bno, Integer dormitoryId,Integer buildingId) {
        this.bno = bno;
        this.dormitoryId = dormitoryId;
        this.buildingId = buildingId;
    }

}
